﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace DAL
{
  public  class OrderStatusHistory
    {
      public static void OrderStatusHistoryInsert(OrderStatusHistoryEntity orderstatusEntity,bool typebit)
      {
          DbHelper.ExecuteNonQuery("[dbo].[P_orderStatusHistory_Insert]",
                orderstatusEntity.OrderId,
                orderstatusEntity.Status,
                orderstatusEntity.Remarks,
                orderstatusEntity.AdminId,
                orderstatusEntity.ReceivDt,
                orderstatusEntity.Note,
                typebit
              );
      }

      public static DataTable OrderStatuslist(int orderid)
      {
         return DbHelper.ExecuteDataTable("[dbo].[p_orderStatusHistory_listByid]", orderid);
      }
    }
}
